<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Yamii Console Application',
	
	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		//if controler is in subfolder admin,
		//then view should have the same structure such as view/admin/index.php
		//'application.controllers.admin.*',
	),
	
	// application components
	'components'=>array(
		'db' => array(
			'connectionString' => 'mysql:host=localhost;dbname=yamiifi_prod1',
			'emulatePrepare' => true,
			'username' => 'yamiifi_prod1',
			'password' => 'yamii_prod1',
			'charset' => 'utf8',
			'enableProfiling' => true,	// enable profiling
			'enableParamLogging' => true,	// enable logging
			//'initSQLs'=>array("SET time_zone='Europe/Helsinki'"),
		),
	),

	// application-level parameters that can be accessed using Yii::app()->params['paramName']
	'params'=>array(
		// this is used in contact page
		'adminEmail'=>'business@yamii.fi',
		'pageSize' => 20,
		'uploadUrl' => '/upload/merchants/',
		'uploadPath' => '/upload/merchants/',
	),
	
	'language' => 'en_gb',
);